<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>文档事件源</title>
		<script src="../js/jquery-1.11.1.js"></script>
		
		
	</head>
	<body>
		<button>按钮</button>
		<div></div>
		<script>
			//执行规则：DOM树加载完毕---理解 body上的所有元素·加载完毕 再执行JQ
		$(function(){
			$("button").click(function(){
				$("div").css({"width":"200px","height":"200px","background":"#ff0"});
			});
		});
		</script>
	</body>
</html>